/*
 * @Description: 安全质量信息管理相关接口
 * @Author: Liu Zhiwang
 * @Date: 2021-05-07 10:03:37
 * @LastEditTime: 2021-05-08 18:07:41
 * @LastEditors: Liu Zhiwang
 */
import request from '@/utils/request';

// 查询单位列表
export function getListPage(params) {
  return request({
    url: `/jjxt/bureauSafeQualityInfo/`,
    method: 'get',
    params
  });
}

// 保存或更新基本信息
export function addOrEditData(data) {
  return request({
    url: `/jjxt/bureauSafeQualityInfo/saveOrUpdateBaseInfo`,
    method: 'post',
    data
  });
}

// 删除
export function deleteData(id) {
  return request({
    url: `/jjxt/bureauSafeQualityInfo/${id}`,
    method: 'delete'
  });
}

// 保存或更新供电度速报提交数据
export function quickSubmit(data) {
  return request({
    url: `/jjxt/bureauSafeQualityInfo/quickSubmit`,
    method: 'post',
    data
  });
}

// 保存或更新分析信息
export function saveOrUpdateAnalysisInfo(data) {
  return request({
    url: `/jjxt/bureauSafeQualityInfo/saveOrUpdateAnalysisInfo`,
    method: 'post',
    data
  });
}

// 供电部审核
export function auditSubmit(data) {
  return request({
    url: `/jjxt/bureauSafeQualityInfo/auditSubmit`,
    method: 'post',
    data
  });
}

// 定性性定责接口（供电部安全科使用）
export function submitDutyType(data) {
  return request({
    url: `/jjxt/bureauSafeQualityInfo/submitDutyType`,
    method: 'post',
    data
  });
}

// 导出数据
export function exportData(params) {
  return request({
    url: `/jjxt/bureauSafeQualityInfo/export`,
    method: 'get',
    params
  });
}
